//
//  ProgressHUD.swift
//  Xiaozihui
//
//  Created by 校企荟 on 2017/10/9.
//  Copyright © 2017年 校企荟. All rights reserved.
//

import UIKit
import SVProgressHUD

let progressHUDDismissDelay = 3.0


class ProgressHUD: NSObject {

    static func show() {
        SVProgressHUD.show()
//        SVProgressHUD.dismiss(withDelay: 3)
        
    }
    
    static func showSuccess(status : String!) {
        SVProgressHUD.showSuccess(withStatus: status)
        SVProgressHUD.dismiss(withDelay: progressHUDDismissDelay)
    }
    
    static func showError(status: String!) {
        SVProgressHUD.showError(withStatus: status)
        SVProgressHUD.dismiss(withDelay: progressHUDDismissDelay)
        
    }
    
    static func dismiss() {
        SVProgressHUD.dismiss() 
    }
}
